<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- qevent.cpp -->
  <title>QInputMethodQueryEvent Class | Qt GUI 5.14.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.14</a></td><td ><a href="qtgui-index.html">Qt GUI</a></td><td ><a href="qtgui-module.html">C++ Classes</a></td><td >QInputMethodQueryEvent</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtgui-index.html">Qt 5.14.2 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QInputMethodQueryEvent Class</h1>
<!-- $$$QInputMethodQueryEvent-brief -->
<p>The QInputMethodQueryEvent class provides an event sent by the input context to input objects. <a href="#details">More...</a></p>
<!-- @@@QInputMethodQueryEvent -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QInputMethodQueryEvent&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += gui</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.0</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="../qtcore/qevent.html">QEvent</a></td></tr></table></div><p>This class was introduced in Qt 5.0.</p>
<ul>
<li><a href="qinputmethodqueryevent-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qinputmethodqueryevent.html#QInputMethodQueryEvent">QInputMethodQueryEvent</a></b>(Qt::InputMethodQueries <i>queries</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::InputMethodQueries </td><td class="memItemRight bottomAlign"><b><a href="qinputmethodqueryevent.html#queries">queries</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qinputmethodqueryevent.html#setValue">setValue</a></b>(Qt::InputMethodQuery <i>query</i>, const QVariant &amp;<i>value</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qinputmethodqueryevent.html#value">value</a></b>(Qt::InputMethodQuery <i>query</i>) const</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QInputMethodQueryEvent-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>It is used by the input method to query a set of properties of the object to be able to support complex input method operations as support for surrounding text and reconversions.</p>
<p><a href="qinputmethodqueryevent.html#queries">queries</a>() specifies which properties are queried.</p>
<p>The object should call <a href="qinputmethodqueryevent.html#setValue">setValue</a>() on the event to fill in the requested data before calling <a href="../qtcore/qevent.html#accept">accept</a>().</p>
</div>
<!-- @@@QInputMethodQueryEvent -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QInputMethodQueryEvent[overload1]$$$QInputMethodQueryEventQt::InputMethodQueries -->
<h3 class="fn" id="QInputMethodQueryEvent"><a name="QInputMethodQueryEvent"></a>QInputMethodQueryEvent::<span class="name">QInputMethodQueryEvent</span>(<span class="type"><a href="../qtcore/qt.html#InputMethodQuery-enum">Qt::InputMethodQueries</a></span> <i>queries</i>)</h3>
<p>Constructs a query event for properties given by <i>queries</i>.</p>
<!-- @@@QInputMethodQueryEvent -->
<!-- $$$queries[overload1]$$$queries -->
<h3 class="fn" id="queries"><a name="queries"></a><span class="type"><a href="../qtcore/qt.html#InputMethodQuery-enum">Qt::InputMethodQueries</a></span> QInputMethodQueryEvent::<span class="name">queries</span>() const</h3>
<p>Returns the properties queried by the event.</p>
<!-- @@@queries -->
<!-- $$$setValue[overload1]$$$setValueQt::InputMethodQueryconstQVariant& -->
<h3 class="fn" id="setValue"><a name="setValue"></a><span class="type">void</span> QInputMethodQueryEvent::<span class="name">setValue</span>(<span class="type"><a href="../qtcore/qt.html#InputMethodQuery-enum">Qt::InputMethodQuery</a></span> <i>query</i>, const <span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> &amp;<i>value</i>)</h3>
<p>Sets property <i>query</i> to <i>value</i>.</p>
<p><b>See also </b><a href="qinputmethodqueryevent.html#value">value</a>().</p>
<!-- @@@setValue -->
<!-- $$$value[overload1]$$$valueQt::InputMethodQuery -->
<h3 class="fn" id="value"><a name="value"></a><span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> QInputMethodQueryEvent::<span class="name">value</span>(<span class="type"><a href="../qtcore/qt.html#InputMethodQuery-enum">Qt::InputMethodQuery</a></span> <i>query</i>) const</h3>
<p>Returns value of the property <i>query</i>.</p>
<p><b>See also </b><a href="qinputmethodqueryevent.html#setValue">setValue</a>().</p>
<!-- @@@value -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2020 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
